import request from '@/utils/request'

// 获取权限列表
export function getPermListApi() {
  return request.get('/permission/list')
}

// 添加权限
export function addPermApi(data) {
  return request({
    url: '/permission/add',
    method: 'post',
    data
  })
}

// 修改权限
export function modifyPermApi(data) {
  return request({
    url: '/permission/modify',
    method: 'put',
    data
  })
}

// 获取权限详情
export function getPermApi(id) {
  return request.get(`/permission/details/${id}`)
}

// 获取权限详情
export function deletePermApi(id) {
  return request.delete(`/permission/delete/${id}`)
}
